import { createApp, render } from 'vue'
import App from './App.vue'
import router from '@/router'
import store from '@/store'
import '@/assets/iconfont/iconfont.css';
// import 'amfe-flexible'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'// 中文语言
import 'uno.css'
import '@/styles/index.scss'
import { Subject } from "rxjs";
import Directive from '@/directive'
// 使用函数创建简单的自定义指令
const app = createApp(App)
app.use(Directive)
// 使用全局Subject来发布订阅事件
app.config.globalProperties.$subject = new Subject()
app.use(router).use(store).use(ElementPlus, {
    locale: zhCn,
    // 支持 large、default、small
    size: 'small'
  })
app.mount('#app')
